home *** CD-ROM | disk | FTP | other *** search
/ Developer CD Series 1990: Night of the Living Disc / Night of the Living Disc.hdv / Dev.CD.5 / Tools / APW.Interfaces / CInclude / Types.h < prev    next >
Encoding:
C/C++ Source or Header  |  1990-03-03  |  2.1 KB  |  97 lines  |  [04] ASCII Text (0x0000)

  1. /********************************************
  2. ; File: Types.h
  3. ;
  4. ;
  5. ; Copyright Apple Computer, Inc.1986-90
  6. ; All Rights Reserved
  7. ;
  8. ********************************************/
  9. #ifndef __TYPES__
  10. #define __TYPES__
  11.  
  12. #ifndef noError
  13. #define noError 0x0000
  14. #endif
  15. #ifndef nil
  16. #define nil 0x0L
  17. #endif
  18. #ifndef NULL /* -  */
  19. #define NULL 0x0L
  20. #endif
  21. #ifndef NIL
  22. #define NIL 0x0L
  23. #endif
  24. #define dispatcher 0xE10000L  /* tool locator dispatch address */
  25. #define TRUE 1
  26. #define true TRUE
  27. #define FALSE 0
  28. #define false FALSE
  29.  
  30.  
  31. /* RefDescriptors */
  32. #define refIsPointer 0x0000
  33. #define refIsHandle 0x0001
  34. #define refIsResource 0x0002
  35. #define refIsNewHandle 0x0003
  36. typedef unsigned char byte, Byte;
  37. typedef unsigned int word, Word ;
  38. typedef int integer, Integer;
  39. typedef long longint, Longint ;
  40. typedef long Long;
  41. typedef unsigned long longword, Longword, LongWord ;
  42. typedef unsigned long Dblword, DblWord ; /* retained for back compatibility */
  43. typedef long Fixed;
  44. typedef long Frac;
  45. typedef extended Extended;
  46. typedef extended *ExtendedPtr ;
  47. typedef char *ptr, *Ptr, *pointer, *Pointer;
  48. typedef ptr *handle, *Handle;
  49. typedef Handle *HandlePtr ;
  50. typedef char *CStringPtr, **CStringHndl, ***CStringHndlPtr ;
  51. typedef long (*ProcPtr)();  /* retained for back compatibility */
  52. typedef pascal void (*VoidProcPtr)();
  53. typedef pascal Word (*WordProcPtr)();
  54. typedef pascal LongWord (*LongProcPtr)();
  55.  
  56. typedef unsigned int boolean, Boolean, BOOLEAN;
  57. typedef short OSErr;
  58. typedef int *IntPtr ;
  59. typedef Ptr FPTPtr;
  60. #define String(size) struct { unsigned char textLength; unsigned char text[size]; }
  61. typedef String(255) Str255, *StringPtr, **StringHandle;
  62.  
  63.  
  64. typedef String(32) Str32, *String32Ptr, **String32Handle;
  65.  
  66. struct Point {
  67.    short v;
  68.    short h;
  69. } ;
  70. typedef struct Point Point, *PointPtr;
  71. struct Rect {
  72.    short v1;
  73.    short h1;
  74.    short v2;
  75.    short h2;
  76. } ;
  77. typedef struct Rect Rect, *RectPtr, **RectHndl;
  78. struct TimeRec {
  79.    Byte second;
  80.    Byte minute;
  81.    Byte hour;
  82.    Byte year;
  83.    Byte day;
  84.    Byte month;
  85.    Byte extra;
  86.    Byte weekDay;
  87. } ;
  88. typedef struct TimeRec TimeRec, *TimeRecPtr, **TimeRecHndl;
  89. typedef Word RefDescriptor ;
  90.  
  91.  
  92.  
  93. typedef Long Ref ;
  94. extern unsigned _ownerid;
  95. extern int _toolErr;
  96. #endif
  97.